package annotations;

/**
 * Created by feng on 16/7/12.
 * define a simple Java Bean who use the annotation.
 */

@DBTable(name = "member") //specify the name of db table
public class MemberBean {
    @SQLString(20)
    String firstName; //此处使用了快捷方式赋值,因为 SQLString.value元素名为value
    @SQLString(30)
    String lastName;

    @SQLInteger
    int age;

    @SQLString(name = "handler", value = 40, constraint = @Constraints(primaryKey = true))
    String handler;

}
